package com.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;



@Controller
@RequestMapping("test")
public class MyController {

    @RequestMapping("toFind.do")
    @PreAuthorize("hasRole('ROLE_FIND')")
    public String method(){

        return "/find.html";
    }
}
